package com.item.service;

import com.item.dao.NewsOperationMapper;
import com.item.dao.model.NewsOperation;
import com.item.dao.model.NewsOperationExample;
import com.item.dao.model.NewsOperationKey;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NewsOperationService {
    @Autowired
    private NewsOperationMapper newsOperationMapper;

    private static final Logger logger = Logger.getLogger(NewsOperationService.class);

    public int countByExample(NewsOperationExample example) {
        return this.newsOperationMapper.countByExample(example);
    }

    public NewsOperation selectByPrimaryKey(NewsOperationKey key) {
        return this.newsOperationMapper.selectByPrimaryKey(key);
    }

    public List<NewsOperation> selectByExample(NewsOperationExample example) {
        return this.newsOperationMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(NewsOperationKey key) {
        return this.newsOperationMapper.deleteByPrimaryKey(key);
    }

    public int updateByPrimaryKeySelective(NewsOperation record) {
        return this.newsOperationMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(NewsOperation record) {
        return this.newsOperationMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(NewsOperationExample example) {
        return this.newsOperationMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(NewsOperation record, NewsOperationExample example) {
        return this.newsOperationMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(NewsOperation record, NewsOperationExample example) {
        return this.newsOperationMapper.updateByExample(record, example);
    }

    public int insert(NewsOperation record) {
        return this.newsOperationMapper.insert(record);
    }

    public int insertSelective(NewsOperation record) {
        return this.newsOperationMapper.insertSelective(record);
    }
}